package mest.dao.cxj;

import mest.VO.cxj.FinancialCostOrderRecordVO;
import mest.VO.cxj.FinancialOtherIncomeRecordVO;
import mest.entity.FinancialCostOrderRecord;
import mest.entity.FinancialOtherIncomeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FinancialOtherIncomeRecordDao {


    /**
     * 添加收款单记录
     *
     * @param foir
     * @param theirDb
     * @return
     */
    Integer insertFinancialOtherIncomeRecord(@Param("foir") FinancialOtherIncomeRecord foir, @Param("theirDb") String theirDb);


    /**
     * 根据ID查询所有收款单记录
     *
     * @return
     */
    List<FinancialOtherIncomeRecordVO> selectAllFinancialOtherIncomeRecordById(@Param("page") Integer page, @Param("limit") Integer limit,
                                                                               @Param("foicId") Integer foicId, @Param("theirDb") String theirDb);


    /**
     * 根据ID查询所有收款单数量
     *
     * @return
     */
    Integer selectCountFinancialOtherIncomeRecordById(@Param("foicId") Integer foicId, @Param("theirDb") String theirDb);


}